#ifndef SURROUNDINGSWIDGET_H
#define SURROUNDINGSWIDGET_H

#include "package.h"
#include <QWidget>
#include <QTableWidget>

class surroundingsWidget : public QWidget
{
    Q_OBJECT

public:
    explicit surroundingsWidget(QWidget *parent = nullptr);

    int lineNum = 1;
    int columnNum = 4;
    QTableWidget *surMessage = new QTableWidget(lineNum, columnNum, this);
    package *pkg;

public:
    void f(package *pkg);

signals:
    void SendSrdNum(int num);

private slots:
    void GetPkg(package *pkg);

protected:
    void closeEvent(QCloseEvent *);

};

#endif // SURROUNDINGSWIDGET_H
